#include <map>

#include <logger.h>

void PrintData(const std::vector<int> &data)
{
    for (const auto &val : data) {
        LOG2SO(INFO) << "key: " << val << ", &val: " << &val;
    }
}

int main()
{
    std::vector<int> data;
    data.push_back(0);
    PrintData(data);
    // I PrintData +8 key: 0, &val: 0x724eb0

    LOG2SO(DEBUG);
    data.push_back(1);
    PrintData(data);
    // I PrintData +8 key: 0, &val: 0x725160
    // I PrintData +8 key: 1, &val: 0x725164

    LOG2SO(DEBUG);
    data.push_back(2);
    PrintData(data);
    // I PrintData +8 key: 0, &val: 0x725180
    // I PrintData +8 key: 1, &val: 0x725184
    // I PrintData +8 key: 2, &val: 0x725188

    return 0;
}
